package com.example.multilevelapprovalback.service;

import com.example.multilevelapprovalback.pojo.Result;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.time.Year;
import java.util.List;

public interface FileService {
    /**
     * 文件上传
     * @param file
     * @return
     */
    List<String> upload(MultipartFile[] file);
    /**
     * 文件下载
     * @param path
     * @return
     */
    void download(String path,HttpServletResponse response);
    /**
     * 删除文件
     * @param path
     * @return
     */
    boolean delete(String path);
}
